import 'package:kepu/generated/json/base/json_field.dart';
import 'package:kepu/generated/json/animal_detail_entity.g.dart';
import 'dart:convert';
export 'package:kepu/generated/json/animal_detail_entity.g.dart';

@JsonSerializable()
class AnimalDetailEntity {
	late int code;
	late String msg;
	late AnimalDetailData data;

	AnimalDetailEntity();

	factory AnimalDetailEntity.fromJson(Map<String, dynamic> json) => $AnimalDetailEntityFromJson(json);

	Map<String, dynamic> toJson() => $AnimalDetailEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class AnimalDetailData {
	late int id;
	late String name;
	late String image;
	late String description;
	late String region;
	late String type;

	AnimalDetailData();

	factory AnimalDetailData.fromJson(Map<String, dynamic> json) => $AnimalDetailDataFromJson(json);

	Map<String, dynamic> toJson() => $AnimalDetailDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}